package com.lkqandzzy.dao;

import com.lkqandzzy.entity.LeavingSchool;
import com.lkqandzzy.entity.StudentClean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 邹靓仔and小帅龙
 * @date 2019/12/29-13:25-星期日-DormitoryManager-ssm
 */
public interface StudentCleanDao {
    /**
     * 进行分页查询
     */
    //获取总条数
    //@Param注解单一属性
    public Integer totalCount(@Param("s_studentid") Integer s_studentid, @Param("s_name") String s_name, @Param("s_dormitoryid") Integer s_dormitoryid);
    //获取用户列表
    //@Param注解单一属性
    public List<StudentClean> getStudentCleanList(@Param("s_studentid") Integer s_studentid, @Param("s_name") String s_name, @Param("s_dormitoryid") Integer s_dormitoryid, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize);

    public int addStudentClean(StudentClean studentclean);    //添加宿舍卫生信息
    public int deleteStudentClean(Integer g_id);   //删除宿舍卫生信息
    public int updateStudentClean(StudentClean studentclean); //修改宿舍卫生信息
    public StudentClean findStudentCleanById(Integer g_id);

    public List<StudentClean> getAll();
}
